package com.tgy.admin.Service;

import com.tgy.page.PageQuery;
import com.tgy.pojo.BlogArticle;
import com.tgy.result.GraceJSONResult;
import com.tgy.result.LayuiTableResult;
import com.tgy.vo.StatisticsVo;

import java.util.List;
import java.util.Map;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/6/21 21:04
 *
 * 后台用户业务接口
 */
public interface AdminArticleService {
    LayuiTableResult getBlogArticleList(BlogArticle bo, PageQuery pageQuery);

    GraceJSONResult addBlogArticle(BlogArticle blogArticle);

    GraceJSONResult updateBlogArticle(BlogArticle blogArticle);

    GraceJSONResult delBlogArticle(String id);

    GraceJSONResult delBlogArticleIds(List<String> ids);

    GraceJSONResult getBlogArticleById(String id);

    GraceJSONResult updateStatus(String id, Integer status);

    StatisticsVo getStatisticsNumber();

    Map<String, Object> getArticleTopTen();

    Map<String, Object> getUserTopTen();

}
